﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Sunflower : MonoBehaviour
{
    // Start is called before the first frame update
    void Start()
    {
        InvokeRepeating("CreatSun", 3, 3);
    }


    public void CreatSun()
    {
        Sunlight sun = GameObject.Instantiate<GameObject>(GameManager.Instance.Prefab_Sun, transform.position, Quaternion.identity, transform).GetComponent<Sunlight>();
        sun.Jump();
    }
}
